package com.qihe.reviewj2se;

public class TestOverLoad2 {
	void max(int a, int b) {
		System.out.println("int");
	}
	
	void max(short a, short b) {
		System.out.println("short");
	}
	
	void max(byte a, byte b) {
		System.out.println("byte");
	}
	
	void max(char a, char b) {
		System.out.println("char");
	}
	
	void max(long a, long b) {
		System.out.println("long");
	}
	
	public static void main(String[] args) {
		TestOverLoad2 to = new TestOverLoad2();
		int c = 8, d = 9;
		//to.max(9, 10);
		short a = 3, b = 4;
		long m = 1, n = 2;
		//to.max(m, n);
		to.max(m, n);
	}
}
